Skip to content

fix(cli): report unsupported model listing in json#29

Merged
heimanba merged 3 commits into
mainfrom
codex/models-json-unsupported-provider
Jul 19, 2026
Merged

fix(cli): report unsupported model listing in json#29
heimanba merged 3 commits into
mainfrom
codex/models-json-unsupported-provider

Conversation

@heimanba

Copy link
Copy Markdown
Contributor

Summary

  • Make agents models list --json emit a structured result for providers that do not support dynamic model listing.
  • Preserve the existing human-readable warning path for non-JSON output.
  • Add a CLI contract test for the unsupported-provider JSON shape.

Validation

  • bun test packages/cli/tests/unit/cli-contracts.test.ts -t "models"
  • bun run --cwd packages/cli typecheck

@heimanba
heimanba marked this pull request as ready for review July 19, 2026 03:26
@heimanba
heimanba merged commit f831d3d into main Jul 19, 2026
15 checks passed
@heimanba
heimanba deleted the codex/models-json-unsupported-provider branch July 19, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant